/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBSportFacility;
import Database.IFDBSportFacility;
import Domain.SportFacility;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLSportFacility {
    
    IFDBSportFacility SportFacility;
    
    public CTRLSportFacility()
    {
        SportFacility = new DBSportFacility();
    }
    
    public void insertSportFacility(SportFacility SF)
    {
        SportFacility.insertSportFacility(SF);
    }
    
    public void insertSportFacility(int FacilityNo, String FacilityType, String Booked, int Capacity)
    {
        SportFacility.insertSportFacility(FacilityNo, FacilityType, Booked, Capacity);
    }
    
    public SportFacility getSportFacility(int FacilityNo)
    {
        return SportFacility.getSportFacility(FacilityNo);
    }
    
    public ArrayList<SportFacility> getSportFacilityList()
    {
        return getSportFacilityList();
    }
    
    public void updateSportFacility(int FacilityNo, String FacilityType, String Booked, int Capacity)
    {
        SportFacility.updateSportFacility(FacilityNo, FacilityType, Booked, Capacity);
    }
    
    public void deleteSportFacility(int FacilityNo)
    {
        SportFacility.deleteSportFacility(FacilityNo);
    }
    
    public int getMax()
    {
        return SportFacility.getMax();
    }
}
